import React from 'react';
import './style.css';
class TostComponent extends React.Component{
    constructor(){
        super();
        this.state={
            text:''
        }
    }
    setOpts(opts){
        this.setState({text:opts.text})
    }
    render(){
        return(
            <div className='Tost'>
                {this.state.text}
            </div>
        )
    }
}
export default TostComponent;